package com.cms.cmsbackend.service;

import com.cms.cmsbackend.mapper.LinkMapper;
import com.cms.cmsbackend.pojo.Link;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LinkService {
    @Autowired
    private LinkMapper linkMapper;
    public void save(Link link){
        linkMapper.insert(link);
    }
    public void remove(int id){
        linkMapper.deleteByPrimaryKey(id);
    }
    public void update(Link link){
        linkMapper.updateByPrimaryKeySelective(link);
    }
}
